package com.lenovo.lcdm.dcm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.lenovo.lcdm.type.vo.ObjectIdentifier;
import com.lenovo.lcdm.type.vo.Typed;
import lombok.Data;

/**
 *
 * @TableName dcm_model_test
 */
@TableName(value ="dcm_model_test")
@Data
public class DcmModelTest implements Serializable, Typed {
    /**
     *
     */
    @TableId
    private Long id;

    /**
     *
     */
    private Long typeId;

    /**
     *
     */
    private Long objectClass;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public ObjectIdentifier getObjectIdentifier() {
        return new ObjectIdentifier(id, this.getClass().getName());
    }

    @Override
    public String getObjectClass() {
        return this.getClass().getName();
    }
}